home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4946 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  41 lines

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: Wed, 6 Mar 96 20:24:04
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960306.4543C8.11FB8@an218.du.pipex.com>
  9. References: <19960306.4307B0.C9EB@an132.du.pipex.com> <DnuyrH.H0u@cix.compulink.co.uk>
  10. NNTP-Posting-Host: an218.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Jolyon Ralph (jralph@cix.compulink.co.uk) wrote:
  14. : > As has already been discussed, code is often misplaced in data hunks 
  15. : > and vice versa. How do you intend to handle that?
  16. : Who cares? In that case the original application was badly written. 
  17. : No-one can possibly say a translator will work for 100% of all cases. 
  18. : Some code will always break. That's tough.
  19.  
  20. Compiled programs commonly have data and code misplaced like this, and it's
  21. pretty much impossible for the humble programmer to control its occurrence;
  22. it's entirely controlled by the compiler. Try even compiling a program as
  23. simple as "int main(void) {return 0;}" with standard options set and you will
  24. see a pile of data misplaced in the first code hunk (this compiled with SAS
  25. 6.x, the compiler used probably by the majority of AmigaOS application
  26. developers).
  27.  
  28. Saying "That's tough" isn't much help when only a fraction (I have seen
  29. estimates of 10-20%) of applications are going to work on a system which uses
  30. static translation. That sort of figure is just not acceptable, and it's
  31. likely that the largest and most complex applications are going to be
  32. hardest hit. Have you examined your Photogenics code carefully to see just
  33. how accurately the hunks have been organised? - not an accusation, just a
  34. question.
  35.  
  36. A more flexible dynamic emulation system with stored translations is a much
  37. better solution, and will get a hell of a lot more applications working.
  38.  
  39. -- Mat.
  40.